package com.gsit.tuneup.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

import org.springframework.data.jpa.domain.AbstractPersistable;

@Entity
public class User extends AbstractPersistable<Long>{
	
	@Column(unique = true)
	@Null(message="should not empty")
	@Size(max = 10)
	private String userName;
	
	@Column
	@Null(message="should not empty")
	@Size(max = 10)
	private String password;


	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	

	
}
